package com.gimi.cloud.bbp.task.feign;

import com.gimi.cloud.bbp.dto.log.LogScheduleJobDTO;
import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 定时任务日志相关service
 * @author wbj
 * @version 1.0
 * @Description
 * @create 2018-02-06
 **/
@FeignClient(name = "bbp-time-task-service")
public interface LogScheduleFeignService {

    /**
     * 保存定时任务执行日志
     * @return
     */
    @Headers({"Content-Type: application/json","Accept: application/json"})
    @RequestMapping(value = "/task/log/save", method = RequestMethod.POST)
    String saveScheduleLog(LogScheduleJobDTO dto);

}
